import index from './views/index.vue'
//登录页面
export const loginRouters = {
    path: '/login',
    meta: {
        title: '登录'
    },
    component: (resolve) => require(['./views/login.vue'], resolve)
};

export const indexRouters= {
    path: '/',
    meta: {
        //路由加载页（即系统的主要架构页）
        title: '主页',
        name:"主页"
    },
    component:index,
    children: [
      {
        //基本表格单文件
      	name: '表格',
        path: 'basic-table',
        component: (resolve) => require(['./views/component/table/basic-table.vue'], resolve)
      },
      {
        //home页，即Dashboard页面
      	name:'dashboard页面',
        path: 'dashboard',
        component: (resolve) => require(['./views/dashboard.vue'], resolve)
      },
      {
      	name:'测试页面1',
        path: 'firstPage',
        component: (resolve) => require(['./views/test2.vue'], resolve)
      },
      {
      	name:'测试页面2',
        path: 'secondPage',
        component: (resolve) => require(['./views/test3.vue'], resolve)
      }
    ]
};

export const routers = [
    loginRouters,
    indexRouters
];

// export default routers;
